import request from '@/utils/request'

// 查询HostInformation列表
export function listHostInformation(query) {
  return request({
    url: '/api/v1/host-information',
    method: 'get',
    params: query
  })
}

// 查询HostInformation详细
export function getHostInformation(id) {
  return request({
    url: '/api/v1/host-information/' + id,
    method: 'get'
  })
}

// 新增HostInformation
export function addHostInformation(data) {
  return request({
    url: '/api/v1/host-information',
    method: 'post',
    data: data
  })
}

// 修改HostInformation
export function updateHostInformation(data) {
  return request({
    url: '/api/v1/host-information/' + data.id,
    method: 'put',
    data: data
  })
}

// 删除HostInformation
export function delHostInformation(data) {
  return request({
    url: '/api/v1/host-information',
    method: 'delete',
    data: data
  })
}

